package bean;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;

public class medicineRecord {
    private medicine Medicine;//预约药品对象

    private String rid = "1";//记录序号
    private String pid;//病人id号

    private String ordertime;//预约时间

    private String state;//预约状态'预约状态：成功，取消，完成，爽约',

    int serialnumber ; // comment '取药序号',



    public medicineRecord() {

    }

    public medicineRecord(medicine medicine, String rid, String pid, String ordertime, String state, int serialnumber) {
        this.Medicine = medicine;
        this.rid = rid;
        this.pid = pid;
        this.ordertime = ordertime;
        this.state = state;
        this.serialnumber = serialnumber;
    }

    //添加预约取药记录


    public medicine getMedicine() {
        return Medicine;
    }

    public void setMedicine(medicine medicine) {
        this.Medicine = medicine;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public int getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(int serialnumber) {
        this.serialnumber = serialnumber;
    }



    @Override
    public String toString() {
        return "medicineRecord{" +
                "medicine=" + Medicine +
                ", rid='" + rid + '\'' +
                ", pid='" + pid + '\'' +
                ", ordertime='" + ordertime + '\'' +
                ", state='" + state + '\'' +
                ", serialnumber=" + serialnumber +
                '}';
    }

}
